package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 处方药房流转表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "大参林处方药房回调流转表")
public class PresDslPharRoam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 处方编码
     */
    @Column(length = 50, comment = "处方编号")
    private String tencode;

    /**
     * 处方编码
     */
    @Column(length = 50, comment = "药房的订单编号, 不是本地的订单编号")
    private String orderNo;

    /**
     * 处方编码
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态 1/2")
    private Integer status;

    /**
     * 信息
     */
    @TableField(value = "`describe`")
    @Column(length = 50, comment = "信息")
    private String describe;

    /**
     * 类型
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "类型 1出库 2收货")
    private Integer type;

    /**
     * 物流单号
     */
    @Column(length = 50, comment = "物流单号")
    private String thirdExpressWaybillNo;

    /**
     * 物流公司
     */
    @Column(length = 20, comment = "物流公司")
    private String logisCompanyName;

    /**
     * 收货时间
     */
    @Column(length = 20, comment = "收货时间, 药房返回")
    private String receivingTime;

    /**
     * 创建日期
     */
    @Column(comment = "创建日期")
    private LocalDateTime createDate;

    /**
     * 出库时间
     */
    @Column(comment = "出库时间")
    private LocalDateTime outboundDate;
}
